<!DOCTYPE html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>广告管理 - 后台管理  | {$com.abbreviation}</title>
	<link href="__APP____PUBLIC__/css/admin/style.css" rel="stylesheet" type="text/css" />
	<link href="__APP____PUBLIC__/css/validator.css" rel="stylesheet" type="text/css" />
	<link href="__APP____PUBLIC__/images/favicon.ico" type="image/ico" rel="shortcut icon">
	<script src="__APP____PUBLIC__/js/jquery-1.4.4.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__APP____PUBLIC__/admin/js/formValidator-4.1.1.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__APP____PUBLIC__/admin/js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
	<script type="text/javascript" src="__APP____PUBLIC__/admin/js/common.js"></script>
	<!--在线编辑器引用-->
	<script type="text/javascript" src="__APP____PUBLIC__/js/ckeditor/ckeditor.js"></script>
	<!--在线编辑器引用-->
	
	<script>		
		$(document).ready(function(){
			$.formValidator.initConfig({formID:"form1",autoTip:true,tidyMode:true,onError:function(msg){}});
			$("#productName").formValidator({onShow:"请输入标题",onFocus:"请输入标题",onCorrect:"输入正确"}).inputValidator({min:1,max:150,onError:"输入错误，请输入1~150个字!"});
			$("#totalPrice").formValidator({empty:true,onShow:"请输入正数",onFocus:"请输入正数",onCorrect:"输入正确"}).regexValidator({regExp:"num1",dataType:"enum",onError:"正数格式不正确"});
			$("#rentText").formValidator({empty:true,onShow:"请输入正数",onFocus:"请输入正数",onCorrect:"输入正确"}).regexValidator({regExp:"intege1",dataType:"enum",onError:"正数格式不正确"});
			$("#area").formValidator({onShow:"请输入正数",onFocus:"请输入正数",onCorrect:"输入正确"}).regexValidator({regExp:"intege1",dataType:"enum",onError:"正数格式不正确"});
		});
		
	</script>
</head>

<body onLoad="loadScript();">
	
		<include file="./Tpl/default/Admin/nav.html" />
		
		<div id="wrapper">
			<div id="nav_trail"><a href="__APP__/Admin/">管理首页</a> 广告修改</div>
			<div id="content">
				
				<!-- 左边菜单 -->
				<include file="./Tpl/default/Admin/left_menu.html" />
				<!-- 左边菜单 -->
				
				<script>
					menusel('m_ad');
				</script>
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li><a href="index">广告管理</a></li>
			    			<li class="cbar-tag-sel">广告修改</a></li>
			              </ul>
			         </div><!-- cbar end -->
			         
			         <div class="cbox">
          
            <div class="ydbar">
      			<div class="info-title">修改banner图片</div>
    		</div>	
       		
       		<form action="__URL__/update" method="post" name="form1" id="form1" enctype="multipart/form-data">
					<input type="hidden" id="id" name="id" value="{$vo.id}"/>
					<input type="hidden" id="type" name="type" value="1"/><!-- 首页banner标志 -->
			  <table cellspacing="0" cellpadding="0" border="0" class="table-f">
				<tbody>
			      <tr>
			        <td align="right" width="15%" class="formtdl">标题：</td>
			        <td align="left" colspan="2">
			        	
			        <input type="text" id="name" size="50" name="name" value="{$vo.name}"></td>
			        <td align="left" width="35%">简单说明是什么样的图片或广告</td>
			      </tr>
			      <tr>
			        <td align="right" width="15%" class="formtdl">banner图片：<br/><center>宽高：680 × 80</center></td>
			        <td align="left" colspan="3">
			        	<img src="__APP__{$vo.path}" width="550" height="80"/>
			        <input readonly="readonly" type="file" id="logo" size="50" name="path"></td>
			      </tr>
			      <tr>
			        <td align="right" width="15%" class="formtdl">跳转链接：</td>
			        <td align="left" colspan="2">
			        	<img src="__APP__{$vo.link}" width="100" height="110"/>
			        <input type="text" id="link" size="50" name="link"  <if condition="$vo.link eq ''"> value="http://" <else/> value="{$vo.link}" </if> >请输入http://前缀</td>
			        <td align="left" width="35%">&nbsp;</td>
			      </tr>
					
				</tbody></table>
					    
			    
			    <table width="100%" cellspacing="0" cellpadding="0" border="0">
			      <tbody><tr>
			          <td align="center">
			            <input type="submit" value="提交" id="button" class="inp-yd" name="button">
			        </td></tr>
			    </tbody></table>
			  
			</form>
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>